
/*

___________________________________________________________________________

Compiling data includes the following steps

1. FOLK modules form the basis for the person-year panel
	Notes:
		- narrow the sample from the start to include only those for whom we
		  have parental links
2. FLOWN data to identify incorporated entrepreneurs 2006 onwards
3. Yrtti data to identify
	incorporated entrepreneurs before 2006
	unincorporated entrepreneurs during the entire sample period
4. Earnings retained in businesses for incorporated entrepreneurs
5. Define starts as an entrepreneur
	Notes:
		- add industry codes while doing this
6. Additional variable definitions
	Notes:
		- pseduo-starts for wage earners to get a comparable timeline
		  are drawn here (event variables defined here, too)
7. Data on incorporated businesses from firms' balance sheets and related sources
8. Alternative definition for entrepreneurs 2006-2014
9. Data for analysis on firm survival

Resulting files
	person-year panel with a limited number of variables (folk_flown_merge)
	person-event panel with additional variables (folk_flown_merge_eventready)
	person-year panel with data on entrepreneurs' firms (folk_flown_merge_eventready_iespec)
	person-event panel with an alternative definition for entrepreneurs 2006-2014 (folk_flown_merge_taxadmin0614)
	data for firm survival analysis (firmlifespan_taxfile and firmlifespan_bnkrpt)
		  
Some additional ready-made data are merged during the analysis.

*/

do "$do\01_01_folkbase.do"
do "$do\01_02_flown.do"
do "$do\01_03_yrtti.do"
do "$do\01_04_re.do"
do "$do\01_05_starts.do"
do "$do\01_06_misc.do"
do "$do\01_07_incfirms.do"
do "$do\01_08_taxadmin0614.do"
do "$do\01_09_survival.do"
